Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move tui code to tui package #591

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brianmcgee
Copy link

It makes PluginTerminalUI available for sops (and other third parties) to support plugins more easily.

Makes PluginTerminalUI available for sops (and other third parties) so they can more easily support plugins.
@felixfontein
Copy link

From the SOPS point of view, having this as a reusable package would be really great! Basically copy'n'pasting that code over (and keeping it up-to-date) would IMO be a last-resort solution, which I'd like to avoid.

@Mic92
Copy link

Mic92 commented Oct 12, 2024

CI needs a fix:

Error: cmd/age-keygen/keygen.go:161:13: non-constant format string in call to log.Printf

@0x2b3bfa0

This comment has been minimized.

$ staticcheck ./... | fmt -w 80 -s
internal/format/format.go:204:17: error strings should not end with punctuation
or newlines (ST1005)
internal/stream/stream.go:15:2: "golang.org/x/crypto/poly1305" is
deprecated: Poly1305 as implemented by this package is a cryptographic
building block that is not safe for general purpose use. For
encryption, use the full ChaCha20-Poly1305 construction implemented by
golang.org/x/crypto/chacha20poly1305. For authentication, use a general
purpose MAC such as HMAC implemented by crypto/hmac.  (SA1019)
plugin/client.go:385:2: field stderr is unused (U1000)

$ gotip vet ./cmd/...
cmd/age-keygen/keygen.go:161:13: non-constant format string in call to log.Printf
@brianmcgee
Copy link
Author

I missed that the static checks needed to be fixed. I just cherry-picked #589 into this branch.

@FiloSottile, it would be great if we could get this merged 🙏

@pheiduck pheiduck mentioned this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants